﻿@model OA.Model.Employee
@{
    Layout = "~/Areas/Member/Views/Shared/_layer_layout.cshtml";
    if (string.IsNullOrWhiteSpace(Model.Pic))
    {
        Model.Pic = "http://tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg";
    }
    else
    {
        Model.Pic = "http://tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg";
    }
}
<style type="text/css">
    .layui-input-block p {
        height: 36px;
        line-height: 36px;
        vertical-align: middle;
    }
    body {
        background-color: #fff;
    }
    .layui-form-label{width:40px;}
    .layui-input-block {margin-left:70px;}
</style>
<div class="layui-tab layui-tab-brief" lay-filter="user" style="background-color:#fff;">
    <div class="layui-form layui-tab-content" id="LAY_ucm" style="width:340px;">
        <div class="layui-form-item" style="margin-bottom:24px;text-align:center;">
            <img src="@Model.Pic" style="border-radius: 100%;width:100px;height:100px;"/>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <p>@Model.EmpName</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">头衔</label>
            <div class="layui-input-block">
                <p>@Model.Honor</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-block">
                @if (!string.IsNullOrWhiteSpace(Model.TelSimpleNum) && !string.IsNullOrWhiteSpace(Model.Telephone))
                {
                    <p>@Model.Telephone (@Model.TelSimpleNum)</p>
                }
                else if (!string.IsNullOrWhiteSpace(Model.TelSimpleNum))
                {
                    <p>@Model.TelSimpleNum</p>
                }
                else if (!string.IsNullOrWhiteSpace(Model.Telephone))
                {
                    <p>@Model.Telephone</p>
                }
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">工号</label>
            <div class="layui-input-block">
                <p>@Model.EmpID</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <p>@Model.Email</p>
            </div>
        </div>       
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <p>@Model.Sex</p>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">出生</label>
            <div class="layui-input-block">
                <p>@Model.Birthday</p>
            </div>
        </div>     
    </div>
</div>